<extend name="Public/base"/>
<block name="body">
    <div class="row">
 <form action="{:U('del')}" method="post" onsubmit="return chkform(this);" >
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">
                    <button type="button" class="am-btn am-btn-success" onclick="window.location.href='{:U('add')}'">添加菜单</button>&nbsp;<button type="submit" class="am-btn am-btn-danger" >删除菜单</button>
                    </div>
                </div>
                <div class="widget-body  widget-body-lg am-fr">
                   
                    <table width="100%"  class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
                        <thead>
                        <tr>
                            <th>
                                    <input type="checkbox" value="" id="chkall">
                            </th>
                            <th>序号</th>
                            <th>菜单名称</th>
                            <th>连接地址</th>
                            <th>是否隐藏</th>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="_menu" id="_menu">
                        <tr class="gradeX">
                            <td>
                                <label>
                                    <form action="">
                                    <input type="checkbox"  value="{$_menu.id}" name="id[]">
                                </label>
                            </td>
                            <td>{$_menu.id}</td>
                            <td>{$_menu.menu_name}</td>
                            <td>{$_menu.linkurl}</td>
                            <td>
                                <if condition="($_menu.hide eq 0)">
                                    <font color="#32cd32">否</font>
                                <elseif condition="($_menu.hide eq 1)"/>
                                    <font color="red">是</font>
                                </if>
                            </td>
                            <td>
                                <div class="tpl-table-black-operation">
                                    <a href="{:U('edit',array('id'=>$_menu['id']))}">
                                        <i class="am-icon-pencil"></i> 编辑
                                    </a>
                                    <a href="{:U('del',array('id'=>$_menu['id']))}" onclick="return chkget(this);" class="tpl-table-black-operation-del">
                                        <i class="am-icon-trash"></i> 删除
                                    </a>
                                </div>
                            </td>
                        </tr>
                        </volist>
                        <!-- more data -->
                        </tbody>
                    </table>
                    </form>
                        <div class="_page">{$_page}</div>
                </div>

            </div>
        </div>
    </div>

</block>